RAIS  3.2
RAIS::UI::Common::Localisation Class Reference

This class implements UI Common methods for localisation. More...

List of all members.

Classes

class  Page
 This class implements localisation Page class. More...

Static Public Member Functions

static void InitializeContextsList (ListItemCollection items)
 This method implements initialization of translation context items.
static void InitializeCulturesList (DropDownList list)
 This method implements initialization of culture selection items.
static void InitializeLanguagesSelection (ListItemCollection items)
 This method implements initialization language selection items.
static void CleanTranslations (System.Web.SessionState.HttpSessionState session)
 This method performs clean-up of page translation for bringing the translated state to the initial language.
static void TranslatePage (System.Web.UI.Page page)
 This method performs translation of a child controls' captions of the supplied page from English into the current user's language.
static void TranslatePageToLanguage (System.Web.UI.Page page, string targetLanguage)
 This method performs translation of a child controls' captions of the supplied page from English into the specified language.
static void TranslateCaptions (ControlCollection controls, string sourceLanguage, string targetLanguage)
 This method performs translation of a supplied control's captions from source language into the specified target language.
static void TranslateGridViewHeader (GridView GV, string translationContext, string sourceLanguage, string targetLanguage)

Detailed Description

This class implements UI Common methods for localisation.


Member Function Documentation

static void RAIS::UI::Common::Localisation::CleanTranslations ( System.Web.SessionState.HttpSessionState  session) [static]

This method performs clean-up of page translation for bringing the translated state to the initial language.

Definition at line 158 of file Localisation.cs.

static void RAIS::UI::Common::Localisation::InitializeContextsList ( ListItemCollection  items) [static]

This method implements initialization of translation context items.

Parameters:
listDrop-down list of available contexts

Definition at line 72 of file Localisation.cs.

static void RAIS::UI::Common::Localisation::InitializeCulturesList ( DropDownList  list) [static]

This method implements initialization of culture selection items.

Parameters:
listDrop-down list of available cultures

Definition at line 98 of file Localisation.cs.

static void RAIS::UI::Common::Localisation::InitializeLanguagesSelection ( ListItemCollection  items) [static]

This method implements initialization language selection items.

Parameters:
itemsItems colleciton to be populated

Definition at line 146 of file Localisation.cs.

static void RAIS::UI::Common::Localisation::TranslateCaptions ( ControlCollection  controls,
string  sourceLanguage,
string  targetLanguage 
) [static]

This method performs translation of a supplied control's captions from source language into the specified target language.

Parameters:
controlsControls' collection to be translated
sourceLanguageSource language
targetLanguageTarget language
Note:
This methods iterates recursively through all child controls

Definition at line 212 of file Localisation.cs.

static void RAIS::UI::Common::Localisation::TranslateGridViewHeader ( GridView  GV,
string  translationContext,
string  sourceLanguage,
string  targetLanguage 
) [static]

Definition at line 302 of file Localisation.cs.

static void RAIS::UI::Common::Localisation::TranslatePage ( System.Web.UI.Page  page) [static]

This method performs translation of a child controls' captions of the supplied page from English into the current user's language.

Parameters:
pagePage to be translated

Definition at line 172 of file Localisation.cs.

static void RAIS::UI::Common::Localisation::TranslatePageToLanguage ( System.Web.UI.Page  page,
string  targetLanguage 
) [static]

This method performs translation of a child controls' captions of the supplied page from English into the specified language.

Parameters:
pagePage to be translated
targetLanguageTarget language

Definition at line 184 of file Localisation.cs.


The documentation for this class was generated from the following file: